400
|
How can I change the password character

Exgridlib_tlb::IEditorPtr var_Editor = Grid1->Columns->Add(L"Edit")->Editor;
var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exEditPassword,TVariant(true));
var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exEditPasswordChar,TVariant(45));
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant(0));
var_Items->AddItem(TVariant(1));
var_Items->AddItem(TVariant(2));
|
399
|
How can I add a password field

Exgridlib_tlb::IEditorPtr var_Editor = Grid1->Columns->Add(L"Edit")->Editor;
var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exEditPassword,TVariant(true));
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant(0));
var_Items->AddItem(TVariant(1));
var_Items->AddItem(TVariant(2));
|
398
|
How can I align the text to the right, in my edit control

Exgridlib_tlb::IEditorPtr var_Editor = Grid1->Columns->Add(L"Edit")->Editor;
var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exEditRight,TVariant(true));
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant(0));
var_Items->AddItem(TVariant(1));
var_Items->AddItem(TVariant(2));
|
397
|
How can I add a simple edit or text box to my column

Grid1->Columns->Add(L"Edit")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant(0));
var_Items->AddItem(TVariant(1));
var_Items->AddItem(TVariant(2));
|
396
|
How can I change the type of the editor

Grid1->Columns->Add(L"Edit")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant(0));
var_Items->AddItem(TVariant(1));
var_Items->AddItem(TVariant(2));
Grid1->Columns->get_Item(TVariant("Edit"))->Editor->EditType = Exgridlib_tlb::EditTypeEnum::SpinType;
|
395
|
How can I add a border arround the editor

Exgridlib_tlb::IEditorPtr var_Editor = Grid1->Columns->Add(L"Edit")->Editor;
var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
var_Editor->Appearance = Exgridlib_tlb::InplaceAppearanceEnum::FlatApp;
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant("Edit"));
var_Items->AddItem(TVariant("Edit"));
var_Items->AddItem(TVariant("Edit"));
|
394
|
How do I assign an editor for the entire column

Grid1->Columns->Add(L"Edit")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant("Edit"));
var_Items->AddItem(TVariant("Edit"));
var_Items->AddItem(TVariant("Edit"));
|
393
|
How do I check if a cell has an editor assigned

Grid1->Columns->Add(L"Column");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->get_CellEditor(TVariant(var_Items->AddItem(TVariant("Edit -> ReadOnly "))),TVariant(0))->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
var_Items->AddItem(TVariant("ReadOnly"));
var_Items->AddItem(TVariant("ReadOnly"));
var_Items->AddItem(TVariant(var_Items->get_HasCellEditor(TVariant(var_Items->FocusItem),TVariant(0))));
|
392
|
How do I delete or remove the editor for a sppecified cell
Grid1->Columns->Add(L"Column");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->get_CellEditor(TVariant(var_Items->AddItem(TVariant("Edit -> ReadOnly "))),TVariant(0))->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
var_Items->AddItem(TVariant("ReadOnly"));
var_Items->AddItem(TVariant("ReadOnly"));
var_Items->DeleteCellEditor(TVariant(var_Items->FocusItem),TVariant(0));
|
391
|
How do I hide or disable the editor assigned to a single cell

Grid1->Columns->Add(L"Column")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant("Edit"));
var_Items->set_CellEditorVisible(TVariant(var_Items->AddItem(TVariant("ReadOnly"))),TVariant(0),Exgridlib_tlb::EditorVisibleEnum::exEditorHidden);
var_Items->AddItem(TVariant("Edit"));
|
390
|
How do I assign or change the editor for a particular cell

Grid1->Columns->Add(L"Column");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant("ReadOnly"));
var_Items->get_CellEditor(TVariant(var_Items->AddItem(TVariant("Edit"))),TVariant(0))->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
var_Items->AddItem(TVariant("ReadOnly"));
|
389
|
How do I get the caption of the cell as it is displayed on the control

Grid1->Columns->Add(L"Column");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant(3));
Exgridlib_tlb::IEditorPtr var_Editor = var_Items->get_CellEditor(TVariant(h),TVariant(0));
var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::CheckListType;
var_Editor->AddItem(1,L"One",TNoParam());
var_Editor->AddItem(2,L"Two",TNoParam());
var_Items->AddItem(TVariant(var_Items->get_CellCaption(TVariant(h),TVariant(0))));
var_Items->AddItem(TVariant(var_Items->get_CellValue(TVariant(h),TVariant(0))));
|
388
|
Shift + Ctrl + Alt + Insert sequence copies the control's content to the clipboard, in template or x-script form
Grid1->AllowCopyTemplate = true;
Grid1->Columns->Add(L"Column");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant("Item 3"));
var_Items->AddItem(TVariant("Item 1"));
var_Items->AddItem(TVariant("Item 2"));
|
387
|
I've seen your template feature, is there any method to generate this x-script format

Grid1->ScrollBySingleLine = true;
Grid1->Columns->Add(L"Column");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant("Item 3"));
var_Items->AddItem(TVariant("Item 1"));
var_Items->AddItem(TVariant("Item 2"));
Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items;
var_Items1->set_CellSingleLine(TVariant(var_Items1->AddItem(TVariant(Grid1->get_ToTemplate(TNoParam())))),TVariant(0),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
|
386
|
How do I prevent scrolling the control's data after user does the sort

Grid1->EnsureOnSort = false;
Grid1->Columns->Add(L"Column");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant("Item 3"));
var_Items->AddItem(TVariant("Item 1"));
var_Items->AddItem(TVariant("Item 2"));
Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam());
Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam());
Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam());
Grid1->Columns->get_Item(TVariant(0))->SortOrder = Exgridlib_tlb::SortOrderEnum::SortAscending;
|
385
|
How do I ensure that the focused item is visible, after the user does the sort

Grid1->EnsureOnSort = true;
Grid1->Columns->Add(L"Column");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant("Item 3"));
var_Items->AddItem(TVariant("Item 1"));
var_Items->AddItem(TVariant("Item 2"));
Grid1->Columns->get_Item(TVariant(0))->SortOrder = Exgridlib_tlb::SortOrderEnum::SortAscending;
|
384
|
How can I disable selecting multiple items by dragging
Grid1->SelectByDrag = false;
Grid1->SingleSel = true;
|
383
|
Is there any function to change the default value for options of the editors

Grid1->DefaultEditorOption[Exgridlib_tlb::EditorOptionEnum::exEditPassword] = TVariant(true);
Grid1->Columns->Add(L"Pass1")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
Grid1->Columns->Add(L"Pass2")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant(1))),TVariant(1),TVariant(2));
Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items;
var_Items1->set_CellValue(TVariant(var_Items1->AddItem(TVariant(1))),TVariant(1),TVariant(2));
|
382
|
How do I close the editor, or stop editing a cell
|
381
|
Is there any function to highlight or mark the cells that have a tooltip using my picture or icon

Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Grid1->MarkTooltipCells = true;
Grid1->MarkTooltipCellsImage = 1;
Grid1->Columns->Add(L"");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_CellToolTip(TVariant(var_Items->AddItem(TVariant("This is a cell with a tooltip"))),TVariant(0),L"This is a bit of text that is shown when the cursor hovers the cell.");
Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items;
var_Items1->set_CellToolTip(TVariant(var_Items1->AddItem(TVariant("This is a cell without a tooltip"))),TVariant(0),L"");
|
380
|
Is there any function to highlight or mark the cells that have a tooltip

Grid1->MarkTooltipCells = true;
Grid1->TooltipCellsColor = RGB(255,0,0);
Grid1->Columns->Add(L"");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_CellToolTip(TVariant(var_Items->AddItem(TVariant("This is a cell with a tooltip"))),TVariant(0),L"This is a bit of text that is shown when the cursor hovers the cell.");
Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items;
var_Items1->set_CellToolTip(TVariant(var_Items1->AddItem(TVariant("This is a cell without a tooltip"))),TVariant(0),L"");
|
379
|
Is there any function to highlight or mark the cells that have a tooltip

Grid1->MarkTooltipCells = true;
Grid1->Columns->Add(L"");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_CellToolTip(TVariant(var_Items->AddItem(TVariant("This is a cell with a tooltip"))),TVariant(0),L"This is a bit of text that is shown when the cursor hovers the cell.");
Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items;
var_Items1->set_CellToolTip(TVariant(var_Items1->AddItem(TVariant("This is a cell without a tooltip"))),TVariant(0),L"");
|
378
|
How do I find the window's handled when an editor is running
long var_Editing = Grid1->Editing;
|
377
|
How can I start editing the cell
Grid1->AutoEdit = false;
Grid1->Edit(TNoParam());
|
376
|
Is there any option to edit the control's data manually, so the editor doesn't show up as soon as the cell is focused
// Click event - Occurs when the user presses and then releases the left mouse button over the grid control.
void __fastcall TForm1::Grid1Click(TObject *Sender)
{
Grid1->Edit(TNoParam());
}
Grid1->BeginUpdate();
Grid1->AutoEdit = false;
Grid1->MarkSearchColumn = false;
Grid1->Columns->Add(L"Edit1")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
Grid1->Columns->Add(L"Edit2")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant(1))),TVariant(1),TVariant(2));
var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant(3))),TVariant(1),TVariant(4));
Grid1->EndUpdate();
|
375
|
How can change the background color for selected editor

Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSelectInPlace] = RGB(255,0,0);
Grid1->Columns->Add(L"Editor")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::DropDownListType;
Grid1->Items->AddItem(TVariant(20));
|
374
|
How can change the visual appearance for the spin control, using your EBN files

Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSpinUpButtonUp] = 0x1000000;
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSpinUpButtonDown] = 0x2000000;
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSpinDownButtonUp] = 0x1000000;
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSpinDownButtonDown] = 0x2000000;
Grid1->Columns->Add(L"Editor")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::SpinType;
Grid1->Items->AddItem(TVariant(20));
|
373
|
How can change the visual appearance for the slider or track bar, using your EBN files

Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSliderThumb] = 0x1000000;
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSliderRange] = RGB(210,210,210);
Grid1->Columns->Add(L"Editor")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::SliderType;
Grid1->Items->AddItem(TVariant(20));
|
372
|
How can change the visual appearance for the button that are visible inside the editors, using your EBN files

Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exButtonDown] = 0x1000000;
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exButtonUp] = 0x2000000;
Exgridlib_tlb::IEditorPtr var_Editor = Grid1->Columns->Add(L"Editor")->Editor;
var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::DateType;
var_Editor->AddButton(TVariant(1),TNoParam(),TNoParam(),TNoParam(),TNoParam(),TNoParam());
Grid1->Items->AddItem(TVariant("1/1/2002"));
|
371
|
How can change the visual appearance for the button that shows the drop down editors, using your EBN files

Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exDropDownButtonUp] = 0x1000000;
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exDropDownButtonDown] = 0x2000000;
Grid1->Columns->Add(L"Editor")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::DateType;
Grid1->Items->AddItem(TVariant("1/1/2002"));
|
370
|
How can I find the column that gets the focus
Grid1->MarkSearchColumn = false;
Grid1->Columns->Add(L"Edit1")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
Grid1->Columns->Add(L"Edit2")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType;
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant(1))),TVariant(1),TVariant(2));
Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items;
var_Items1->set_CellValue(TVariant(var_Items1->AddItem(TVariant(3))),TVariant(1),TVariant(4));
Exgridlib_tlb::IItemsPtr var_Items2 = Grid1->Items;
var_Items2->set_ItemDivider(var_Items2->AddItem(TVariant(Grid1->FocusColumnIndex)),0);
|
369
|
How do I make the control read-only, but still can see the values in a drop down list

Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines;
Grid1->ReadOnly = Exgridlib_tlb::ReadOnlyEnum::exLocked;
Grid1->Columns->Add(L"Editor")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::DateType;
Grid1->Items->AddItem(TVariant("1/1/2003"));
|
368
|
How do I make the control read-only (method 1)
Grid1->BeginUpdate();
Grid1->ReadOnly = Exgridlib_tlb::ReadOnlyEnum::exReadOnly;
Exgridlib_tlb::IEditorPtr var_Editor = Grid1->Columns->Add(L"Editor")->Editor;
var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::CheckListType;
var_Editor->AddItem(1,L"One",TNoParam());
var_Editor->AddItem(2,L"Two",TNoParam());
Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Check");
Exgridlib_tlb::IEditorPtr var_Editor1 = var_Column->Editor;
var_Editor1->EditType = Exgridlib_tlb::EditTypeEnum::CheckValueType;
var_Editor1->set_Option(Exgridlib_tlb::EditorOptionEnum::exCheckValue1,TVariant(2));
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant(1))),TVariant(1),TVariant(0));
var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant(2))),TVariant(1),TVariant(1));
Grid1->EndUpdate();
|
367
|
How do I change the control's border, using your EBN files

Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Grid1->Appearance = Exgridlib_tlb::AppearanceEnum(0x1000000);
|
366
|
Can I change the default border of the tooltip, using your EBN files

Grid1->ToolTipDelay = 1;
Grid1->ToolTipWidth = 364;
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exToolTipAppearance] = 0x1000000;
Grid1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column";
|
365
|
Can I change the background color for the tooltip

Grid1->ToolTipDelay = 1;
Grid1->ToolTipWidth = 364;
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exToolTipBackColor] = RGB(255,0,0);
Grid1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column";
|
364
|
Does the tooltip support HTML format

Grid1->ToolTipDelay = 1;
Grid1->ToolTipWidth = 364;
Grid1->Columns->Add(L"tootip")->ToolTip = L"<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgcolor>";
|
363
|
Can I change the forecolor for the tooltip

Grid1->ToolTipDelay = 1;
Grid1->ToolTipWidth = 364;
Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exToolTipForeColor] = RGB(255,0,0);
Grid1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column";
|
362
|
Can I change the foreground color for the tooltip

Grid1->ToolTipDelay = 1;
Grid1->ToolTipWidth = 364;
Grid1->Columns->Add(L"tootip")->ToolTip = L"<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>";
|
361
|
How can I merge cells

Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines;
Grid1->MarkSearchColumn = false;
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Grid1->Columns->Add(L"C3");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("this cell merges the first two columns"));
var_Items->set_CellMerge(TVariant(h),TVariant(0),TVariant(1));
h = var_Items->AddItem(TNoParam());
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("this cell merges the last two columns"));
var_Items->set_CellMerge(TVariant(h),TVariant(1),TVariant(2));
h = var_Items->AddItem(TVariant("this cell merges the all three columns"));
var_Items->set_CellMerge(TVariant(h),TVariant(0),TVariant(1));
var_Items->set_CellMerge(TVariant(h),TVariant(0),TVariant(2));
h = var_Items->AddItem(TVariant("this draws a divider item"));
var_Items->set_ItemDivider(h,0);
|
360
|
How can I merge cells

Grid1->MarkSearchColumn = false;
Grid1->TreeColumnIndex = -1;
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
h = var_Items->AddItem(TVariant("This is bit of text merges all cells in the item"));
var_Items->set_ItemDivider(h,0);
var_Items->set_CellHAlignment(TVariant(h),TVariant(0),Exgridlib_tlb::AlignmentEnum::CenterAlignment);
|
359
|
How can I specify the width for a splited cell

Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exRowLines;
Grid1->Columns->Add(L"Single Column");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Split 1"));
TVariant s = TVariant(var_Items->get_SplitCell(TVariant(h),TVariant(0)));
var_Items->set_CellWidth(TNoParam(),TVariant(s),64);
var_Items->set_CellValue(TNoParam(),TVariant(s),TVariant("Split 2"));
TVariant s1 = TVariant(var_Items->get_SplitCell(TNoParam(),TVariant(s)));
var_Items->set_CellValue(TNoParam(),TVariant(s1),TVariant("Split 3"));
var_Items->set_CellWidth(TNoParam(),TVariant(s1),64);
|
358
|
How can I split a cell in three parts

Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exRowLines;
Grid1->Columns->Add(L"Single Column");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Split 1"));
TVariant s = TVariant(var_Items->get_SplitCell(TVariant(h),TVariant(0)));
var_Items->set_CellValue(TNoParam(),TVariant(s),TVariant("Split 2"));
TVariant s1 = TVariant(var_Items->get_SplitCell(TNoParam(),TVariant(s)));
var_Items->set_CellValue(TNoParam(),TVariant(s1),TVariant("Split 3"));
|
357
|
How can I add a button aligned to right

Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Grid1->Columns->Add(L"Single Column");
Grid1->ShowFocusRect = false;
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_ItemDivider(var_Items->AddItem(TVariant("This is a bit of text being displayed on the entire item")),0);
TVariant s = TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("Split Cell 1.1"))),TVariant(0)));
var_Items->set_CellValue(TNoParam(),TVariant(s),TVariant("Split Cell <img>1</img>"));
var_Items->set_CellValueFormat(TNoParam(),TVariant(s),Exgridlib_tlb::ValueFormatEnum::exHTML);
var_Items->set_CellHAlignment(TNoParam(),TVariant(s),Exgridlib_tlb::AlignmentEnum::CenterAlignment);
var_Items->set_CellHasButton(TNoParam(),TVariant(s),true);
var_Items->set_CellWidth(TNoParam(),TVariant(s),84);
|
356
|
How can I split a cell

Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exRowLines;
Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Grid1->Columns->Add(L"Single Column");
Grid1->ShowFocusRect = false;
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
TVariant s = TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("Split Cell 1.1"))),TVariant(0)));
var_Items->set_CellValue(TNoParam(),TVariant(s),TVariant("Split Cell <img>1</img>"));
var_Items->set_CellValueFormat(TNoParam(),TVariant(s),Exgridlib_tlb::ValueFormatEnum::exHTML);
var_Items->set_CellHAlignment(TNoParam(),TVariant(s),Exgridlib_tlb::AlignmentEnum::CenterAlignment);
var_Items->set_CellBackColor(TNoParam(),TVariant(s),0x1000000);
var_Items->set_CellWidth(TNoParam(),TVariant(s),84);
|
355
|
Can I select an item giving its general position

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_SelectPos(TVariant(1));
|
354
|
How can I change the color for separator / dividers items

Grid1->GridLineColor = RGB(255,0,0);
Grid1->MarkSearchColumn = false;
Grid1->TreeColumnIndex = -1;
Grid1->ScrollBySingleLine = false;
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
h = var_Items->AddItem(TNoParam());
var_Items->set_ItemDivider(h,0);
var_Items->set_ItemDividerLine(h,Exgridlib_tlb::DividerLineEnum::DoubleDotLine);
var_Items->set_ItemDividerLineAlignment(h,Exgridlib_tlb::DividerAlignmentEnum::DividerCenter);
var_Items->set_ItemHeight(h,6);
var_Items->set_SelectableItem(h,false);
h = var_Items->AddItem(TVariant("Cell 2"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
|
353
|
How can I add separator - dividers items

Grid1->MarkSearchColumn = false;
Grid1->TreeColumnIndex = -1;
Grid1->ScrollBySingleLine = false;
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
h = var_Items->AddItem(TNoParam());
var_Items->set_ItemDivider(h,0);
var_Items->set_ItemDividerLine(h,Exgridlib_tlb::DividerLineEnum::DoubleDotLine);
var_Items->set_ItemDividerLineAlignment(h,Exgridlib_tlb::DividerAlignmentEnum::DividerCenter);
var_Items->set_ItemHeight(h,6);
var_Items->set_SelectableItem(h,false);
h = var_Items->AddItem(TVariant("Cell 2"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
|
352
|
Can I change the style of the line being displayed by a divider item

Grid1->MarkSearchColumn = false;
Grid1->TreeColumnIndex = -1;
Grid1->ScrollBySingleLine = false;
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
h = var_Items->AddItem(TVariant("This is bit of text that's displayed on the entire item, divider."));
var_Items->set_ItemDivider(h,0);
var_Items->set_ItemDividerLine(h,Exgridlib_tlb::DividerLineEnum::DoubleDotLine);
var_Items->set_CellHAlignment(TVariant(h),TVariant(0),Exgridlib_tlb::AlignmentEnum::CenterAlignment);
var_Items->set_ItemHeight(h,24);
|
351
|
Can I remove the line being displayed by a divider item

Grid1->MarkSearchColumn = false;
Grid1->TreeColumnIndex = -1;
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
h = var_Items->AddItem(TVariant("This is bit of text that's displayed on the entire item, divider."));
var_Items->set_ItemDivider(h,0);
var_Items->set_ItemDividerLine(h,Exgridlib_tlb::DividerLineEnum::EmptyLine);
var_Items->set_CellHAlignment(TVariant(h),TVariant(0),Exgridlib_tlb::AlignmentEnum::CenterAlignment);
|
350
|
How can I display a divider item, merging all cells

Grid1->MarkSearchColumn = false;
Grid1->TreeColumnIndex = -1;
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
h = var_Items->AddItem(TVariant("This is bit of text that's displayed on the entire item, divider."));
var_Items->set_ItemDivider(h,0);
var_Items->set_CellHAlignment(TVariant(h),TVariant(0),Exgridlib_tlb::AlignmentEnum::CenterAlignment);
|
349
|
How can I fix or lock items

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_LockedItemCount(Exgridlib_tlb::VAlignmentEnum::exTop,1);
var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exTop,0)),TVariant(0),TVariant("This is a locked item, fixed to the top side of the control."));
var_Items->set_ItemBackColor(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exTop,0),RGB(196,196,186));
var_Items->set_LockedItemCount(Exgridlib_tlb::VAlignmentEnum::exBottom,2);
var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exBottom,0)),TVariant(0),TVariant("This is a locked item, fixed to the top side of the control."));
var_Items->set_ItemBackColor(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exBottom,0),RGB(196,196,186));
var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exBottom,1)),TVariant(0),TVariant("This is a locked item, fixed to the top side of the control."));
var_Items->set_ItemBackColor(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exBottom,1),RGB(186,186,186));
|
348
|
How can I fix or lock an item on the bottom side of the control

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_LockedItemCount(Exgridlib_tlb::VAlignmentEnum::exBottom,1);
var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exBottom,0)),TVariant(0),TVariant("This is a locked item, fixed to the bottom side of the control."));
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
|
347
|
How can I fix or lock an item on the top of the control

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_LockedItemCount(Exgridlib_tlb::VAlignmentEnum::exTop,1);
var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exTop,0)),TVariant(0),TVariant("This is a locked item, fixed to the top side of the control."));
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
|
346
|
Is there any function to limit the height of the items when I display it using multiple lines

Grid1->ScrollBySingleLine = true;
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
var_Items->set_ItemMaxHeight(h,48);
|
345
|
Why I cannot center my cells in the column

Grid1->TreeColumnIndex = -1;
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exRowLines;
Grid1->Columns->Add(L"Default")->Alignment = Exgridlib_tlb::AlignmentEnum::CenterAlignment;
Grid1->Items->AddItem(TVariant("item 1"));
Grid1->Items->AddItem(TVariant("item 2"));
Grid1->Items->AddItem(TVariant("item 3"));
|
344
|
How can I align the cell to the left, center or to the right

Grid1->TreeColumnIndex = -1;
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exRowLines;
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_CellHAlignment(TVariant(var_Items->AddItem(TVariant("left"))),TVariant(0),Exgridlib_tlb::AlignmentEnum::LeftAlignment);
var_Items->set_CellHAlignment(TVariant(var_Items->AddItem(TVariant("center"))),TVariant(0),Exgridlib_tlb::AlignmentEnum::CenterAlignment);
var_Items->set_CellHAlignment(TVariant(var_Items->AddItem(TVariant("right"))),TVariant(0),Exgridlib_tlb::AlignmentEnum::RightAlignment);
|
343
|
How do I apply HTML format to a cell

Grid1->TreeColumnIndex = -1;
Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Grid1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
Grid1->HTMLPicture[L"p2"] = TVariant("c:\\exontrol\\images\\auction.gif");
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("The following item shows some of the HTML format supported:"));
var_Items->set_CellHAlignment(TVariant(h),TVariant(0),Exgridlib_tlb::AlignmentEnum::CenterAlignment);
h = var_Items->AddItem(TVariant(String("<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <") +
"u>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolo" +
"r</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> "));
var_Items->set_CellValueFormat(TVariant(h),TVariant(0),Exgridlib_tlb::ValueFormatEnum::exHTML);
var_Items->set_CellSingleLine(TVariant(h),TVariant(0),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
|
342
|
How can I change the font for a cell

Grid1->Columns->Add(L"Default");
Grid1->Items->AddItem(TVariant("std font"));
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_CellValueFormat(TVariant(var_Items->AddItem(TVariant("this <font tahoma;12>is a bit of text with</font> a different font"))),TVariant(0),Exgridlib_tlb::ValueFormatEnum::exHTML);
|
341
|
How can I change the font for a cell

Grid1->Columns->Add(L"Default");
Grid1->Items->AddItem(TVariant("default font"));
/*
Select the Component\Import Component...\Import a Type Library,
to import the following Type Library:
OLE Automation
TypeLib: stdole2.tlb
to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont");
f->Name = L"Tahoma";
f->Size = TVariant(long(12));
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_CellFont(TVariant(var_Items->AddItem(TVariant("new font"))),TVariant(0),(IFontDisp*)(f));
|
340
|
How can I change the font for entire item

Grid1->Columns->Add(L"Default");
Grid1->Items->AddItem(TVariant("default font"));
/*
Select the Component\Import Component...\Import a Type Library,
to import the following Type Library:
OLE Automation
TypeLib: stdole2.tlb
to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont");
f->Name = L"Tahoma";
f->Size = TVariant(long(12));
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_ItemFont(var_Items->AddItem(TVariant("new font")),(IFontDisp*)(f));
|
339
|
How do I vertically align a cell

Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exRowLines;
Grid1->Columns->Add(L"MultipleLine")->set_Def(Exgridlib_tlb::DefColumnEnum::exCellSingleLine,TVariant(false));
Grid1->Columns->Add(L"VAlign");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("This is a bit of long text that should break the line"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("top"));
var_Items->set_CellVAlignment(TVariant(h),TVariant(1),Exgridlib_tlb::VAlignmentEnum::exTop);
h = var_Items->AddItem(TVariant("This is a bit of long text that should break the line"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("middle"));
var_Items->set_CellVAlignment(TVariant(h),TVariant(1),Exgridlib_tlb::VAlignmentEnum::exMiddle);
h = var_Items->AddItem(TVariant("This is a bit of long text that should break the line"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("bottom"));
var_Items->set_CellVAlignment(TVariant(h),TVariant(1),Exgridlib_tlb::VAlignmentEnum::exBottom);
|
338
|
How can I change the position of an item

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->AddItem(TVariant("Item 1"));
var_Items->AddItem(TVariant("Item 2"));
var_Items->set_ItemPosition(var_Items->AddItem(TVariant("Item 3")),0);
|
337
|
How do I find an item based on a path

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->set_ItemData(var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")),TVariant(1234));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_FindPath(L"Root 1\\Child 1"),true);
|
336
|
How do I find an item based on my extra data

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->set_ItemData(var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")),TVariant(1234));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_FindItemData(TVariant(1234),TNoParam()),true);
|
335
|
How do I find an item

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_FindItem(TVariant("Child 2"),TVariant(0),TNoParam()),true);
|
334
|
How can I insert a hyperlink or an anchor element

Grid1->Columns->Add(L"Column");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_CellValueFormat(TVariant(var_Items->AddItem(TVariant("Just an <a1>anchor</a> element ..."))),TVariant(0),Exgridlib_tlb::ValueFormatEnum::exHTML);
Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items;
var_Items1->set_CellValueFormat(TVariant(var_Items1->AddItem(TVariant("Just another <a2>anchor</a> element ..."))),TVariant(0),Exgridlib_tlb::ValueFormatEnum::exHTML);
|
333
|
How do I find the index of the item based on its handle

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_ItemByIndex(var_Items->get_ItemToIndex(h)),true);
|
332
|
How do I find the handle of the item based on its index

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_ItemByIndex(1),true);
|
331
|
How can I find the cell being clicked in a radio group

Grid1->MarkSearchColumn = false;
Grid1->SelBackColor = RGB(255,255,128);
Grid1->SelForeColor = RGB(0,0,0);
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Grid1->Columns->Add(L"C3");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Radio 1"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(1),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(1),1234);
var_Items->set_CellValue(TVariant(h),TVariant(2),TVariant("Radio 2"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(2),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(2),1234);
var_Items->set_CellState(TVariant(h),TVariant(1),1);
var_Items->set_CellBold(TNoParam(),TVariant(var_Items->get_CellChecked(1234)),true);
|
330
|
Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later

Grid1->LinesAtRoot = Exgridlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_ItemHasChildren(var_Items->AddItem(TVariant("parent item with no child items")),true);
var_Items->AddItem(TVariant("next item"));
|
329
|
Can I let the user to resize at runtime the specified item

Grid1->ScrollBySingleLine = true;
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exRowLines;
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
var_Items->set_ItemAllowSizing(var_Items->AddItem(TVariant("resizable item")),true);
var_Items->AddItem(TVariant("not resizable item"));
|
328
|
How can I change the size ( width, height ) of the picture

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->set_CellPicture(TVariant(h),TVariant(0),Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
var_Items->set_CellPictureWidth(TVariant(h),TVariant(0),24);
var_Items->set_CellPictureHeight(TVariant(h),TVariant(0),24);
var_Items->set_ItemHeight(h,32);
h = var_Items->AddItem(TVariant("Root 2"));
var_Items->set_CellPicture(TVariant(h),TVariant(0),Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
var_Items->set_ItemHeight(h,48);
|
327
|
How can I find the number or the count of selected items

Grid1->SingleSel = false;
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_SelectItem(var_Items->get_ItemChild(h),true);
var_Items->set_SelectItem(var_Items->get_NextSiblingItem(var_Items->get_ItemChild(h)),true);
var_Items->AddItem(TVariant(Grid1->ExecuteTemplate(L"Items.SelectCount()")));
|
326
|
How do I unselect an item

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_SelectItem(h,false);
|
325
|
How do I find the selected item

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_SelectItem(h,true);
var_Items->set_ItemBold(var_Items->get_SelectedItem(0),true);
|
324
|
How do I un select all items
Grid1->SingleSel = false;
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->UnselectAll();
|
323
|
How do I select multiple items

Grid1->SingleSel = false;
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_SelectItem(var_Items->get_ItemChild(h),true);
var_Items->set_SelectItem(var_Items->get_NextSiblingItem(var_Items->get_ItemChild(h)),true);
|
322
|
How do I select all items

Grid1->SingleSel = false;
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->SelectAll();
|
321
|
How do I select an item

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_SelectItem(h,true);
|
320
|
Can I display a button with some picture or icon inside

Grid1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(" Button <img>p1</img> "));
var_Items->set_CellValueFormat(TVariant(h),TVariant(1),Exgridlib_tlb::ValueFormatEnum::exHTML);
var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Exgridlib_tlb::AlignmentEnum::RightAlignment);
var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
var_Items->set_CellButtonAutoWidth(TVariant(h),TVariant(1),true);
var_Items->set_ItemHeight(h,48);
|
319
|
Can I display a button with some picture or icon inside

Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(" Button <img>1</img> "));
var_Items->set_CellValueFormat(TVariant(h),TVariant(1),Exgridlib_tlb::ValueFormatEnum::exHTML);
var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Exgridlib_tlb::AlignmentEnum::RightAlignment);
var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
var_Items->set_CellButtonAutoWidth(TVariant(h),TVariant(1),true);
|
318
|
Can I display a button with some icon inside

Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(" <img>1</img> "));
var_Items->set_CellValueFormat(TVariant(h),TVariant(1),Exgridlib_tlb::ValueFormatEnum::exHTML);
var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Exgridlib_tlb::AlignmentEnum::RightAlignment);
var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
var_Items->set_CellButtonAutoWidth(TVariant(h),TVariant(1),true);
|
317
|
How can I assign multiple icon/picture to a cell

Grid1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
Grid1->HTMLPicture[L"p2"] = TVariant("c:\\exontrol\\images\\auction.gif");
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("text <img>p1</img> another picture <img>p2</img> and so on"));
var_Items->set_CellValueFormat(TVariant(h),TVariant(0),Exgridlib_tlb::ValueFormatEnum::exHTML);
var_Items->set_CellPicture(TVariant(h),TVariant(0),Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"));
var_Items->set_ItemHeight(h,48);
var_Items->AddItem(TVariant("Root 2"));
|
316
|
How can I assign an icon/picture to a cell

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->set_CellPicture(TVariant(h),TVariant(0),Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
var_Items->set_ItemHeight(h,48);
var_Items->AddItem(TVariant("Root 2"));
|
315
|
How can I assign multiple icons/pictures to a cell

Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root <img>1</img> 1, <img>2</img>, ... and so on "));
var_Items->set_CellValueFormat(TVariant(h),TVariant(0),Exgridlib_tlb::ValueFormatEnum::exHTML);
|
314
|
How can I assign multiple icons/pictures to a cell

Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->set_CellImages(TVariant(h),TVariant(0),TVariant("1,2,3"));
|
313
|
How can I assign an icon/picture to a cell

Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->set_CellImage(TVariant(h),TVariant(0),1);
var_Items->set_CellImage(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"))),TVariant(0),2);
var_Items->set_CellImage(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"))),TVariant(0),3);
var_Items->set_ExpandItem(h,true);
|
312
|
How can I get the handle of an item based on the handle of the cell

Grid1->Columns->Add(L"Default");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_CellItem(var_Items->get_ItemCell(h,TVariant(0))),true);
|
311
|
How can I display a button inside the item or cell

Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(" Button 1 "));
var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Exgridlib_tlb::AlignmentEnum::RightAlignment);
var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
var_Items->set_CellButtonAutoWidth(TVariant(h),TVariant(1),true);
h = var_Items->AddItem(TVariant("Cell 2"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(" Button 2 "));
var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Exgridlib_tlb::AlignmentEnum::CenterAlignment);
var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
|
310
|
How can I change the state of a radio button

Grid1->MarkSearchColumn = false;
Grid1->SelBackColor = RGB(255,255,128);
Grid1->SelForeColor = RGB(0,0,0);
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Grid1->Columns->Add(L"C3");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Radio 1"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(1),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(1),1234);
var_Items->set_CellValue(TVariant(h),TVariant(2),TVariant("Radio 2"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(2),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(2),1234);
var_Items->set_CellState(TVariant(h),TVariant(1),1);
|
309
|
How can I assign a radio button to a cell

Grid1->MarkSearchColumn = false;
Grid1->SelBackColor = RGB(255,255,128);
Grid1->SelForeColor = RGB(0,0,0);
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Grid1->Columns->Add(L"C3");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Radio 1"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(1),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(1),1234);
var_Items->set_CellValue(TVariant(h),TVariant(2),TVariant("Radio 2"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(2),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(2),1234);
var_Items->set_CellState(TVariant(h),TVariant(1),1);
|
308
|
How can I change the state of a checkbox

Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Check Box"));
var_Items->set_CellHasCheckBox(TVariant(h),TVariant(1),true);
var_Items->set_CellState(TVariant(h),TVariant(1),1);
|
307
|
How can I assign a checkbox to a cell

Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Check Box"));
var_Items->set_CellHasCheckBox(TVariant(h),TVariant(1),true);
|
306
|
How can I display an item or a cell on multiple lines

Grid1->ScrollBySingleLine = true;
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines"));
var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exgridlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
|
305
|
How can I assign a tooltip to a cell

Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("tooltip"));
var_Items->set_CellToolTip(TVariant(h),TVariant(1),L"This is bit of text that's shown when the user hovers the cell");
|
304
|
How can I associate an extra data to a cell
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Cell 2"));
var_Items->set_CellData(TVariant(h),TVariant(1),TVariant("your extra data"));
|
303
|
How do I enable or disable a cell

Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Cell 2"));
var_Items->set_CellValue(TVariant(h),TVariant(2),TVariant("Cell 3"));
var_Items->set_CellEnabled(TVariant(h),TVariant(1),false);
|
302
|
How do I change the cell's foreground color

Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Cell 2"));
var_Items->set_CellForeColor(TVariant(h),TVariant(1),RGB(255,0,0));
|
301
|
How do I change the visual effect for the cell, using your EBN files

Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Grid1->Columns->Add(L"C1");
Grid1->Columns->Add(L"C2");
Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Cell 2"));
var_Items->set_CellBackColor(TVariant(h),TVariant(1),0x1000000);
|